package zh.keep.all.receiver

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.util.Log
import zh.keep.all.Utils

/**
 * 卸载广播拉起
 */
class DeleteReceiver : BroadcastReceiver() {

    override fun onReceive(context: Context, intent: Intent) {
        Log.d("TAG", "卸载广播: " + intent.action)
        when (intent.action) {
            Intent.ACTION_PACKAGE_FULLY_REMOVED -> {
                //卸载其他app时拉起
                Utils.startService()
            }
        }
    }
}